<template>
    <div class="advert">
        <header>
            <img src="../../../static/img/advert/logo1.png" alt="">
        </header>
        <van-swipe :autoplay="3000" indicator-color="white" class='swiper' >
            <van-swipe-item v-for="(item,index) of bannerList" :key="index">
                <img v-lazy="item" alt="">
            </van-swipe-item>
        </van-swipe>
        <div class="logo">
            <img src="../../../static/img/advert/logo2.png" alt="">
        </div>
        <div class="btn">
           <router-link :to="{name:'watsons'}" tag="div" replace>
               <div>还等</div><div>什么</div>
               </router-link>
           <!-- <div>打卡签到</div> -->
       </div>
       <div class="tit">
           <div>本品所含膳食纤维主要来源于低聚异麦芽糖、抗性糊精、聚葡萄糖3 种原料，膳食纤维总添加量为17.82克/瓶</div>
           <img src="../../../static/img/advert/logo3.png" alt="">
       </div>
    </div>
</template>
<script>
import { Swipe, SwipeItem } from 'vant';
export default {
    name:'advert',
    data() {
        return {
            bannerList:['http://file.rzkeji.com/web/f6_activity/banner1.jpg','http://file.rzkeji.com/web/f6_activity/banner2.jpg','http://file.rzkeji.com/web/f6_activity/banner3.jpg','http://file.rzkeji.com/web/f6_activity/banner4.jpg']
        }
    },
}
</script>
<style lang="scss" scoped>
@import '../../common/css/index.scss';
    .advert{
        width:100%;
        height: 100%;
        background:url('http://file.rzkeji.com/web/f6_activity/bg1.jpg');
        background-size: 100%;
    }
    header{
        & img{
            margin:10px 0;
            width: 120px;
        }
    }
    .swiper{
        width:100%;
        height:630px;
        img{
            width: 100%;
        }
    }
    .logo{
        margin-top:20px;
        width: 100%;
        img{
            width: 50%;
        }
    }
    .btn{
        position: relative;
        margin-top:-40px;
        &>div{
            width: 160px;
            height: 160px;
               background:url('../../../static/img/advert/advert_btn.png');
                background-size:100% 100%;
                display: flex;
                justify-content: center;
                align-content: center;
                flex-wrap: wrap;
                div{
                    width: 100%;
                }
           }
    }
    .tit{
        display: flex;
        margin-top:10px;
        font-size: 13px;
        height: 80px;
        div{
            height: 100%;
            width:90%;
            padding-top:60px;
        }
        img{
            width: 80px;
            height: 80px;
            margin-right: 20px;
        }
    }
</style>
